package learning.logging;

public class MemoryLogger implements Logger {

	private StringBuilder sb = new StringBuilder();
	
	public void print(String msg) {
		sb.append(msg);
	}
	
	public String readFromMemory() {
		return sb.toString();
	}
	
	public void clear() {
		sb.setLength(0);
	}
}
